package com.caifu.pojo;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 缴费记录表
 * </p>
 *
 * @author GZ
 * @since 2020-11-06
 */
@Data
public class YlPaymentRecord extends Model<YlPaymentRecord> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID(缴费记录表)
     */
    @TableId(value = "ID", type = IdType.AUTO)
    private Integer id;

    /**
     * 老人编号
     */
    @TableField("USER_NO")
    private String userNo;

    /**
     * 缴费金额
     */
    @TableField("PAYMENT_COUNT")
    private BigDecimal paymentCount;

    /**
     * 缴费日期
     */
    @TableField("PAYMENT_DAY")
    private String paymentDay;

    /**
     * 创建时间
     */
    @TableField("CREATE_TIME")
    private String createTime;

    /**
     * 管理员编号
     */
    @TableField("TELLER_NO")
    private String tellerNo;

    /**
     * 状态 1:正常 9：删除
     */
    @TableField("STATUS")
    private String status;

    /**
     * 扣款状态：1-已扣完 0-未扣完
     */
    @TableField("PAY_STATUS")
    private String payStatus;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "YlPaymentRecord{" +
        "id=" + id +
        ", userNo=" + userNo +
        ", paymentCount=" + paymentCount +
        ", paymentDay=" + paymentDay +
        ", createTime=" + createTime +
        ", tellerNo=" + tellerNo +
        ", status=" + status +
        "}";
    }
}
